#include "dialog.h"
#include "ui_dialog.h"
#include "mydialog.h"
Dialog::Dialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::Dialog)
{
    ui->setupUi(this);

}

Dialog::~Dialog()
{
    delete ui;
}


void Dialog::on_pushButton_clicked()
{
    MyDialog * dig=new MyDialog(this);

    connect(dig,&MyDialog::mySingnal,this,[=](){
        ui->label_2->setText("你惦记的是yes");
    });
    connect(dig,&MyDialog::mySingnal1,this,[=](){
        ui->label_2->setText("你惦记的是no");
    });
     dig->exec();

}
